<form style="margin-top: 60px;" class="form-inline" method="get" action="">
    <!--查询方式-->
    <input type="hidden" name="type" value="2" />
    <div class="form-group col-xs-4"  style="width: 20%;">
        <div class="col-xs-12">
            <input class="form-control" name="condition" value="{$condition}"
                   placeholder="接收方商会名称|接收方商会ID">
        </div>
    </div>

    <div class="form-group col-xs-2">
        <div class="col-xs-12">
            <select id="status-selector" name="status" class="form-control" tabindex="-1">
                <option value="">无选择</option>
                <?php foreach($status_list as $itk=>$item){ ?>
                <option value="{$itk}" {if condition="$status!=''&&$status==$itk"}selected{/if}>{$item}</option>
                <?php } ?>
            </select>
        </div>
    </div>

    <div class="form-group col-xs-4" style="width: 20%;">
        <button type="submit" class="btn btn-success">
            搜索
        </button>

    </div>
</form>

<hr>

<table class="table table-striped">
    <thead>
    <tr>
        <td>ID</td>
        <td>接收方商会</td>
        <td>状态</td>
        <td>发送时间</td>
        <td>处理时间</td>

    </tr>
    </thead>
    <tbody>
    {volist name="list" id="item"}
    <tr>
        <td>{$item.id}</td>
        <td>{$item.bsname}【ID：{$item.receiver_bus_id}】</td>
        <td>
            {if condition="$item.status==0"}
            <label class="label label-danger">{$item.status|get_bussiness_agreement_status}</label>
            {else/}
            <label class="label label-success">{$item.status|get_bussiness_agreement_status}</label>
            {/if}
        </td>
        <td>{$item.create_time|show_datetime}</td>
        <td>{$item.update_time|show_datetime}</td>

    </tr>
    {/volist}
    </tbody>
</table>

<div class="row">
    <div class="col-xs-12" style="text-align: right;">
        {$list->render()}
    </div>
</div>

<script src="__PUBLIC__/vendors/select2/js/select2.min.js"></script>
<script type="application/javascript">
    $(function () {

        //获取分类
        $("#status-selector").select2({
            placeholder: "选择处理状态",
            allowClear: true
        });
    });
</script>